Instance 0

Class140.basedir_configURLonly()#0{
        createLoader(null, //
                     new File(srcdir, "aaa/config.xml").toURI().toURL()// basedir=srcdir/aaa
                     new SearchPath("../WEB-INF"true)// srcdir/aaa/../WEB-INF
                     new SearchPath(new File(srcdir, "aaa/bbb").getAbsolutePath()false))// srcdir/aaa/bbb
}


Instance 1

Class480.toFileList(File parent,List<String> names)#0{
        for (String name : names) {
            // don't call getCanonicalFile here because otherwise we'll be forced to call getCanonical* everywhere
            result.add(new File(new File(parent, name).toURI().normalize()));
        }
}


Instance 2

Class360.setUp()#1{
    file = new File("./tmp");
    rm(file);
    URI uri = new File(file,"hdfs").toURI();
    Path hdfsDirPath = new Path(uri.toString());
    directory = new HdfsDirectory(hdfsDirPath);
}


Instance 3

Class60.getProjectDataPath(){
    File home = URIUtils.getAbsoluteFile(getProjectHome());
    home = new File(home, "_data");
    home = new File(home, getProjectID());
    return home.toURI();    
}


Instance 4

Class770.getWadlPath(String uri,String configRoot){
        if (Paths.get(uri).isAbsolute()) {
            return new File(uri).toString();
        else {
            return new File(configRoot, uri).toURI().toString();
        }
}


Instance 5

Class140.basedir_rel()#0{
        createLoader(".."// srcdir/aaa/..
                     new File(srcdir, "aaa/config.xml").toURI().toURL()// srcdir/aaa
                     new SearchPath("WEB-INF"true)// srcdir/WEB-INF
                     new SearchPath(new File(srcdir, "aaa").getAbsolutePath()false))// srcdir/aaa
}


Instance 6

Class440.parseManifestFile(String pManifestPath){
    Document document = parseXML(new File(pManifestPath).toURI().toURL());
    String pPath = new File(pManifestPath).getParent();
    return parsePlugin(document, pPath);
}


Instance 7

Class130.BldProject(URI relLoc,Properties overrides){
        loc = new File(".").toURI().resolve(relLoc).normalize();
        config = new BldConfig(loc);
        convert = new BldConverter(config);
        File f = new File(loc);
        lastModified = f.lastModified();
        baseDir = f.getParentFile();
}


Instance 8

Class150.doInBackground()#1{
      URI osPath = new File(ConfigurationSettings.getOutputSheetsDir()).toURI();
      File xsltFile = new File(osPath.resolve(uri));
}


Instance 9

Class190.addUserDefinedFolders(List<URL> urls){
    if (this.folders != null) {
      for (String folder : this.folders) {
        urls.add(new File(folder).toURI().toURL());
      }
    }
}


Instance 10

Class440.addShipResources(Set<String> fileNames){
        for (String fileName : fileNames) {
            fileName = fileName.trim();
            if (fileName.length() 0) {
                URL url = new File(fileName).toURI().toURL();
                addExtraResource(url);
            }
        }
}


Instance 11

Class810.normaliseFilePathToUrl(String path){
        if(path.startsWith("file:"
                || path.startsWith("http:"
                || path.startsWith("https:")) {
            return new URI(path).toURL();
        else {
            return new File(path).toURI().toURL();
        }
}


Instance 12

Class380.createClassLoader(ClassLoader parent){
        getLog().debug("Using classpath: " + classpathElements);
        int size = classpathElements.size();
        for (int i = 0; i < size; i++) {
            String name = (StringclasspathElements.get(i);
            File file = new File(name);
            urls[i= file.toURI().toURL();
            getLog().debug("URL: " + urls[i]);
        }
        URLClassLoader loader = new URLClassLoader(urls, parent);
}


Instance 13

Class120.addClassPath(String path)#1{
    if (path != null) {
      URL url = new File(path).toURI().toURL();
      URL[] urls = new URL[appClassPath.length + 1];
      System.arraycopy(appClassPath, 0, urls, 0, appClassPath.length);
      urls[appClassPath.length= url;
      appClassPath = urls;
    }
}


Instance 14

Class170.getJarUrls(String jars)#0{
        for (String token : tokens) {
            File file = new File(token);
            urls.add(file.toURI().toURL());
        }
}


Instance 15

Class270.addProject(Collection<IProject> projects,String location)#0{
    for(IContainer container : root.findContainersForLocationURI(new File(location).toURI())) {
      if(container instanceof IProject) {
        projects.add((IProjectcontainer);
        break;
      }
    }
}


Instance 16

Class520.getURLs(final String[] paths)#0{
            for (final String path : paths) {
                try {
                    urls.add(new File(path).toURI().toURL());
                catch (final MalformedURLException e) {
                    throw new RuntimeException(e);
                }
            }
}


Instance 17

Class260.buildExpectedClassPath(String expectedClassPath)#2{
        for (String path : paths) {
            urls.add(new File(path).toURI().toURL());
        }
}


Instance 18

Class650.toFileUrls(final List<String> thirdPartyJars)#0{
        for (String path : thirdPartyJars) {
            thirdPartyClassPath.add(new File(path).toURI().toURL());
        }
}


Instance 19

Class290.getCompiledClassloader()#0{
        for (Object object : project.getTestClasspathElements()) {
          String path = (Stringobject;
          urls.add(new File(path).toURI().toURL());
        }
        return new URLClassLoader(urls.toArray(new URL[urls.size()]), getClass().getClassLoader());
}


Instance 20

Class220.primaryClassLoader(List<String> classpath){
    URL[] urls = new URL[classpath.size()];
    for (String element : classpath) {
      urls[indexnew File(element).toURI().toURL();
      index = index + 1;
    }
    return new URLClassLoader(urls);
}


Instance 21

Class630.resolveJarUrl(final String jarUrl){
    String jarUrlS = environmentSubstitutejarUrl );
    if jarUrlS.indexOf"://" == -) {
      // default to file://
      File jarFile = new FilejarUrlS );
      return jarFile.toURI().toURL();
    else {
      return new URLjarUrlS );
    }
}


Instance 22

Class190.ensureFilePathIsUrl(String url)#0{
        if (isFilePath(url&& !url.startsWith("file:")) {
            try {
                return new File(url).toURI().toURL().toString();
            catch (MalformedURLException e) {
                e.printStackTrace();
            }
        }
}


Instance 23

Class700.urlClassLoader(List<String> runtimeClassPath){
      URL[] urls = new URL[runtimeClassPath.size()];
      for(String s : runtimeClassPath) {
        urls[i++new File(s).toURI().toURL();
      }
      return new URLClassLoader(urls);
}


Instance 24

Class430.makeUrl(String filename){
        if (filename.indexOf("://"|| filename.startsWith("file:")) {
            url = filename;
        else {
            url = new File(filename).toURI().toString();
        }
}


Instance 25

Class360.getAsUrlList()#0{
        for (String path : unmodifiableElements) {
            File f = new File(path);
            urls.add(f.toURI().toURL());
        }
}


Instance 26

Class60.openFileDialog(){
    FileDialog fileDialog = new FileDialog(owner.getShell(),  SWT.OPEN);
    String file = fileDialog.open();
    if (file!=null) {
      return new File(file).toURI();
    }
}


Instance 27

Class720.widgetSelected(SelectionEvent e){
        FileDialog dialog = new FileDialog(parent.getShell());
        String file = dialog.open();
        if (file != null)
        {
          text.setText(new File(file).toURI().toString());
        }
}


Instance 28

Class60.load(String filename)#0{
        if (filename != null) {
            setTopologyLocation(new File(filename).toURI());
        else {
            load(getTopologyLocation());
        }
}


Instance 29

Class450.toUri(final String s){
        URI uri = createURI(s);
        if (uri.getScheme() != null) {
            final Matcher matcher = supportedUriSchemeRe.matcher(uri.getScheme());
            Preconditions.checkArgument(matcher.find()"Supported URI schemes are: http, https and file");
            return uri;
        }
        return new File(s).toURI().normalize();
}


Instance 30

Class550.doGetResource(String path){
        String realPath = servletContext.getRealPath(path);
        if (realPath != null) {
          return new File(realPath).toURI().toURL();
        }
        else {
          return servletContext.getResource(path);
        }
}


Instance 31

Class130.accept(final File aDir,final String aName){
        if aName.endsWith".jar" ) )
        {
          plugins.addnew FileaDir, aName ).toURI().toString() );
        }
}


Instance 32

Class520.handleExternalLocationChanged(){
    final String text= fExternalLocationControl.getText();
    if (text != null && !"".equals(text)) //$NON-NLS-1$
      fScriptLocation= new File(text).toURI();
    else
      fScriptLocation= null;
}


Instance 33

Class660.loadInternal(String method,String url){
        if (!TextUtils.isEmpty(url&& url.startsWith("/"))
            url = new File(url).toURI().toString();
}


Instance 34

Class270.processURIArg(String arg){
    if (arg == null) {
      return null;
    else {
      return new File(arg).toURI();
    }
}


Instance 35

Class520.initialize(){
        if (shapefile == null) {
            throw new IllegalStateException("shapefile path is not set");
        }
        ShapefileDataStore store = new ShapefileDataStore(new File(shapefile).toURI().toURL());
        String name = store.getTypeNames()[0];
        FeatureSource source = store.getFeatureSource(name);
        collection = source.getFeatures();
}


Instance 36

Class750.codeLocation()#0{
        String outputDirectory = outputDirectory();
            return outputDirectory != null new File(outputDirectory).toURI().toURL() null;
}


Instance 37

Class220.main(String[] aaParamters)#0{
        File file = new File"\\\\somehost\\someshare\\somefile.ext" );
        URI uri = file.toURI();
        if (!(uri.toURL().toURI().equals(uri))) {
            throw new RuntimeException("Test failed : (uri.toURL().toURI().equals(uri)) isn't hold");
        }
}


Instance 38

Class390.cleanupReplacement(String... expectedFiles)#1{
      for (String efile : expectedFiles)
        expected.add(new File(rootTabletDir, efile).toURI().toString());
      Assert.assertEquals(expected, new HashSet<String>(ret));
}


Instance 39

Class510.getWSDLURL(String location){
        if (location.startsWith("http://")) {
            return new URL(location);
        else {
            return new File(getAbsolutePath(location)).toURI().toURL();
        }
}


Instance 40

Class750.toUrls(Collection<String> paths)#0{
    for (String s : paths) {
      urls.add(new File(s).toURI().toURL());
    }
}


Instance 41

Class530.classpathToUrls(String[] classPath,List<URL> urls)#0{
            for (String cp : classPath)
                urls.add(new File(cp).toURI().toURL());
}


Instance 42

Class630.toUrls(final Set<String> strings)#0{
        for (final String s : strings) {
            try {
                urls.add(new File(s).toURI().toURL());
            catch (final MalformedURLException e) {
                throw new IllegalArgumentException(e);
            }
        }
}


Instance 43

Class350.configureDescriptor(final AppModule appModule,final Descriptor descriptor)#0{
        URL resource = appModule.getClassLoader().getResource(descriptor.path());
            appModule.getAltDDs().put(descriptor.name(), resource == null new File(descriptor.path()).toURI().toURL() : resource);
}


Instance 44

Class540.getConfigLocationUri()#1{
        if (getConfigName() != null) {
            return String.valueOf(new File(getConfigName()).toURI());
        }
}


Instance 45

Class470.getRelativeBaseDirPath(String baseDir)#0{
        String path = new File(".").toURI().relativize(new File(baseDir).toURI()).getPath();
        if (StringUtils.isEmpty(path)) {
            path = ".";
        }
}


Instance 46

Class760.setUp()#1{
    if(m_topologyProvider == null) {
      m_topologyProvider = new SimpleGraphProvider();
      m_topologyProvider.setTopologyLocation(new File("target/test-classes/graph.xml").toURI());
    }
    m_topologyProvider.resetContainer();
}


Instance 47

Class790.Shell(BundleContext context,CommandProcessor processor)#0{
        String baseDir = context.getProperty("gosh.home");
        baseDir = (baseDir == null? context.getProperty("user.dir": baseDir;
        baseURI = new File(baseDir).toURI();
}


Instance 48

Class650.normalizeName(String name){
        if (StringUtils.startsWithIgnoreCase(name, "classpath:")) {
            name = StringUtils.removeStartIgnoreCase(name, "classpath:");
        }
        name = "/"+StringUtils.strip(name, "/\\");
        String path = new File(name).toURI().normalize().getRawPath();
        return StringUtils.stripStart(path, "/\\");
}


Instance 49

Class410.validateXliffFile(String fileLocalPath)#1{
    IFile file = root.getFileForLocation(URIUtil.toPath(new File(fileLocalPath).toURI()));
    if (file == null) {
      Shell shell = Display.getDefault().getActiveShell();
      MessageDialog.openError(shell, Messages.getString("file.XLFValidator.msgTitle"),
          Messages.getString("file.XLFValidator.msg9"));
      return false;
    }
    return validateXliffFile(file);
}


Instance 50

Class30.getClassPaths()#1{
    for int i = 0; i < urls.length; i++ ) {
      urls[inew Filepaths[i] ).toURI( ).toURL( );
    }
}


Instance 51

Class700.addResources(List<URL> urls)#0{
      for (Resource resource : this.project.getResources()) {
        File directory = new File(resource.getDirectory());
        urls.add(directory.toURI().toURL());
        FileUtils.removeDuplicatesFromOutputDirectory(this.classesDirectory,
            directory);
      }
}


Instance 52

Class460.urls(final String line,final StrSubstitutor lookup)#0{
        for (final String location : ProvisioningUtil.realLocation(lookup.replace(line))) { // should have 1 item
            try {
                urls.add(new File(location).toURI().toURL());
            catch (final MalformedURLException e) {
                throw new IllegalArgumentException(e);
            }
        }
}


Instance 53

Class810.manifestClasspath(final File[] sourceDirectory,final File outputDirectory,final List<String> compileClasspathElements)#0{
    for (String classpathElement : compileClasspathElements) {
      cp = cp + new File(classpathElement).toURI() " ";
    }
    cp = cp.replaceAll("\\s+""\\ ");
}


Instance 54

Class0.main(String[] args)#0{
        File file = new File(System.getProperty("test.src"".")"ding.dls");
        URL url = file.toURI().toURL();
}


Instance 55

Class90.addCP(){
        List runtimeClasspathElements = project.getRuntimeClasspathElements();
        for (Object runtimeClasspathElement : runtimeClasspathElements) {
            String element = (StringruntimeClasspathElement;
            addUrl(new File(element).toURI().toURL());
        }
}


Instance 56

Class770.getWorkingDirectory()#0{
      File file = new File(System.getProperty("user.dir"));
      return file.toURI().toURL();
}


Instance 57

Class110.createInstrumentationClassFinder(final String classPath)#0{
    for (StringTokenizer tokenizer = new StringTokenizer(classPath, File.pathSeparator); tokenizer.hasMoreTokens();) {
      final String s = tokenizer.nextToken();
      urls.add(new File(s).toURI().toURL());
    }
    final URL[] urlsArr = (URL[])urls.toArray(new URL[urls.size()]);
    return new InstrumentationClassFinder(urlsArr);
}


Instance 58

Class660.testBindingFormatStringURL()#0{
        File file = new File(INPUT_SRC_OXM_XML);
        URL url = file.toURI().toURL();
        properties.put(JAXBContextFactory.ECLIPSELINK_OXM_XML_KEY, url.toExternalForm());
        JAXBContext jCtx = (JAXBContextJAXBContextFactory.createContext(classes, properties, loader);
        doTestInputSrc(jCtx);
}


Instance 59

Class660.url_$_is_opened(String s)#0{
        File file = new FiletargetReportDir, "index.html" );
        String url = file.toURI().toURL().toString() + s;
        webDriver.geturl );
}


Instance 60

Class790.setDBContextClassLoader(String jarName){
    String root = System.getProperty("derby.system.home", System.getProperty("user.dir"));
    File jar = new File(root, jarName);
    URLClassLoader cl = new URLClassLoader(new URL[] {jar.toURI().toURL()});
}


Instance 61

Class460.testUnmarshalStreamSourceURLJSON(){
        File file = new File(ClassLoader.getSystemResource(JSON_RESOURCE).getFile());
        String systemId = file.toURI().toURL().toExternalForm();
        StreamSource ss = new StreamSource(systemId);
        Object testObject = jaxbUnmarshaller.unmarshal(ss);
        jsonToObjectTest(testObject);
}


Instance 62

Class400.testUnmarshalStreamSourceURLJSONWithClass(){
        File file = new File(ClassLoader.getSystemResource(JSON_RESOURCE).getFile());
        String systemId = file.toURI().toURL().toExternalForm();
        StreamSource ss = new StreamSource(systemId);
        JAXBElement jbe = jaxbUnmarshaller.unmarshal(ss, EmployeeCollection.class);
        jsonToObjectTest(jbe.getValue());
}


Instance 63

Class680.addFileToCatalog()#0{
        File file = new File"C:\\data\\cities.shp" );
        URL url = file.toURI().toURL();
}


Instance 64

Class220.getSavedWsdlUrl(String fileBaseName,File targetFolder)#0{
        File file = new File(targetFolder, fileBaseName + ".wsdl");
            return file.toURI().toURL();
}


Instance 65

Class510.initROCF()#1{
    File file = new File(SCAN1_FILE_AS_STR);
    ConfigurationWatchListUtil.setMainWatchURL(loggerContext, file.toURI().toURL());
}


Instance 66

Class70.testXmlReader(){
        File file = new File("src/test/resources/reader/sample.xml");
        final URL testdata  = file.toURI().toURL();
        reader.parse(testdata, creator);
        assertEquals("Did not create expected number of nodes"1, creator.size());
}


Instance 67

Class560.cachesWsdl()#0{
        File file = new File(UrlWsdlLoaderTest.class.getResource("/test6/TestService.wsdl").toURI());
        WsdlLoader loader = new UrlWsdlLoader(file.toURI().toURL().toString());
        DefinitionCacheConfig cachedWsdl = WsdlUtils.cacheWsdl(loader);
}


Instance 68

Class420.fileToURLAndBack()#1{
    File file = new File("a b.xml");
    URL url = file.toURI().toURL();
}


Instance 69

Class620.setUp()#2{
        urls.add(new File("./target/test-classes").toURI().toURL());
}


Instance 70

Class400.pathToUrl(String path)#0{
            return new File(path).toURI().toURL();
}


Instance 71

Class20.addPath(String path){
      url = new File(path).toURI().toURL();
      addURL(url);
      logger.warning("Don't understand path: " + path);
}


Instance 72

Class570.EOModelHelper(String path){
        this(new File(path).toURI().toURL());
}


Instance 73

Class790.loadEOModel(String path,boolean generateClientClass){
        return loadEOModel(new File(path).toURI().toURL(), generateClientClass);
}


Instance 74

Class740.loadModeIndex(String path){
        return loadModeIndex(new File(path).toURI().toURL());
}


Instance 75

Class340.toAbsolutePath(final String path){
            final URL url = new File(path).toURI().toURL();
            return toFilePath(url);
            throw new RuntimeException("Failed to resolve relative path for: " + path, e);
}


Instance 76

Class340.setUp()#1{
        urls.add(new File("./target/test-classes").toURI().toURL());
}


Instance 77

Class600.generateIndepInstallDirPath(){
    String installDirPath = System.getProperty("osgi.install.area").replace(URI_FILE_PREFIX, "");
    File installDirFile = new File(installDirPath);
    URI platformIndependentFile = installDirFile.toURI();
    String platformIndepInstallDirPath = platformIndependentFile.toString();
}


Instance 78

Class710.testLoadFromJarFile()#2{
    ClassLoader tempLoader = new URLClassLoader(new URL[]{new File("src/test/resources/SpyDotPropertiesTest.jar").toURI().toURL()}, currentThreadLoader);
}


Instance 79

Class460.loadClassAtPath(String baseDir,String path)#0{
      ClassLoader classLoader = new URLClassLoader(new URL[] {new File(baseDir).toURI().toURL()});
}


Instance 80

Class270.getClassLoader(JavaArchive jar)#0{
        jar.as(ExplodedExporter.class).exportExploded(tmp, "root");
        URL url = new File(tmp, "root").toURI().toURL();
        return new URLClassLoader(new URL[]{url});
}


Instance 81

Class290.resourcesInJar()#0{
        URLClassLoader classLoader = new URLClassLoader(
            new URL[] { new File("src/test/resources/classpath-scanner/classpath-scanner.jar").toURI().toURL() });
}


Instance 82

Class180.getAnnotationSearchClassLoader(){
        return new URLClassLoadernew URL[] { new FilegetProject().getBuild().getOutputDirectory() ).toURI().toURL() } );
}


Instance 83

Class550.getFileSystem()#1{
      URL url = new File(getFile()"jrt-fs.jar").toURI().toURL();
      ClassLoader loader = new URLClassLoader(new URL[]{url}null);
      fs = call(newFileSystem, ROOT_URI, EMPTY_ENV, loader);
      myFileSystem = new SoftReference<Object>(fs);
}


Instance 84

Class430.resourcesInDirectory()#0{
        URLClassLoader classLoader = new URLClassLoader(new URL[] { new File("src/test/resources/classpath-scanner/classes/").toURI().toURL() });
}


Instance 85

Class90.setupDirectory()#0{
    URI uri = new File(file, "hdfs-join").toURI();
    Path hdfsDirPath = new Path(uri.toString());
}


Instance 86

Class300.setupDirectory()#1{
    URI uri = new File(file, "hdfs").toURI();
    Path hdfsDirPath = new Path(uri.toString());
}


Instance 87

Class300.setupDirectory()#0{
    URI uri = new File(file, "hdfs").toURI();
    Path hdfsDirPath = new Path(uri.toString());
}


Instance 88

Class20.messageSource()#0{
        File file = new File(System.getProperty("user.dir")"src/main/webapp/WEB-INF/messages");
        messageSource.setBasename(file.toURI().toString());
}


Instance 89

Class40.toURI()#1{
        Assert.assertEquals(repo.configToHttpUri("@apple:1.0")new File(repo.getTargetRepo()"prod/apple/1.0/apple-1.0.config").toURI());
        Assert.assertEquals(repo.binaryToHttpUri("apple:1.0")new File(repo.getTargetRepo()"food/fruit/apple/1.0/apple-1.0.tar.gz").toURI());
}


Instance 90

Class560.testWebapp_2_2(){
        File appDir = new File("test/webapp-2.2");
                new JspCServletContext(null, appDir.toURI().toURL()null);
        Assert.assertEquals(2, context.getEffectiveMajorVersion());
        Assert.assertEquals(2, context.getEffectiveMinorVersion());
}


Instance 91

Class180.testWebapp_3_1(){
        File appDir = new File("test/webapp-3.1");
        JspCServletContext context = new JspCServletContext(
                null, appDir.toURI().toURL(), null, false, false);
        Assert.assertEquals(3, context.getEffectiveMajorVersion());
        Assert.assertEquals(1, context.getEffectiveMinorVersion());
}


Instance 92

Class30.testWebapp_2_2(){
        File appDir = new File("test/webapp-2.2");
        JspCServletContext context = new JspCServletContext(
                null, appDir.toURI().toURL(), null, false, false);
        Assert.assertEquals(2, context.getEffectiveMajorVersion());
        Assert.assertEquals(2, context.getEffectiveMinorVersion());
}


Instance 93

Class300.testWebresources(){
        File appDir = new File("test/webresources/dir1");
                new JspCServletContext(null, appDir.toURI().toURL()null);
        Assert.assertEquals(3, context.getEffectiveMajorVersion());
        Assert.assertEquals(1, context.getEffectiveMinorVersion());
}


Instance 94

Class640.createBridgeContext(FontInfo fontInfo)#1{
        FOUserAgent userAgent = FopFactory.newInstance(new File(".").toURI()).newFOUserAgent();
}


Instance 95

Class260.testPDFA()#1{
        FOUserAgent userAgent = FopFactory.newInstance(new File(".").toURI()).newFOUserAgent();
        userAgent.getRendererOptions().put("pdf-a-mode""PDF/A-1b");
}


Instance 96

Class610.initialize()#0{
            fopFactory = FopFactory.newInstance(new File(".").toURI());
}


Instance 97

Class470.parseConfig(RendererConfBuilder builder)#2{
        userAgent = FopFactory.newInstance(
                new File(".").toURI(), builder.endRendererConfig().build()).newFOUserAgent();
}


Instance 98

Class720.createPath(String strCleanPath){
        File file = new File(strCleanPath);
        URI uri = file.toURI();
        return new Path(uri.getPath());
}


Instance 99

Class380.prepare()#1{
            fopFactory = FopFactory.newInstance(new File(".").toURI());
}


Instance 100

Class410.setUp()#0{
        FopFactory fopFactory = FopFactory.newInstance(new File(".").toURI());
        FOUserAgent userAgent = fopFactory.newFOUserAgent();
        userAgent.setAccessibility(true);
}


Instance 101

Class50.getServicePortFromWSDL(String wsdlFileName)#1{
        File wsdlFile = new File(System.getProperty("jbossas.ts.submodule.dir""/src/test/java/org/jboss/as/test/integration/ws/wsa/" + wsdlFileName);
        URL wsdlURL = wsdlFile.toURI().toURL();
        Service service = Service.create(wsdlURL, serviceName);
        ServiceIface proxy = (ServiceIfaceservice.getPort(ServiceIface.class);
        BindingProvider bp = (BindingProviderproxy;
}


Instance 102

Class770.apply(final VirtualFile it)#0{
            String _path = it.getPath();
            File _file = new File(_path);
            URI _uRI = _file.toURI();
            return _uRI.toURL();
}


Instance 103

Class100.filePathAsURL(String path)#0{
    URI uri = new File(path).toURI();
      return uri.toURL();
}


Instance 104

Class540.apply(final String str)#0{
          File _file = new File(str);
          java.net.URI _uRI = _file.toURI();
          return _uRI.toURL();
}


Instance 105

Class430.createFileResource(String path)#0{
          File f = new File(path);
          URI uri = f.toURI();
          URL url = uri.toURL();
            return new FileResource(url);
}


Instance 106

Class360.testRegexpHeaderURL()#1{
            createCheckConfig(RegexpHeaderCheck.class);
        URI uri = new File(getPath("regexp.header")).toURI();
        checkConfig.addAttribute("headerFile", uri.toString());
}


Instance 107

Class250.getJarURL(){
            String url = new File(jarFile.getName()).toURI().toURL().toExternalForm();
            return new URL("jar:" + url + "!/");
}


Instance 108

Class400.testReadWrite()#0{
        Path descriptor = new Path(new File("parent").toURI().toString(),"descriptor.xml");
}


Instance 109

Class690.testGetJobIdFromIncorrectPath(){
    File jobHistoryfile = new File(JOB_HISTORY_FILE_NAME);
    Path srcPath = new Path(jobHistoryfile.toURI());
    FileLister.getJobIdFromPath(srcPath);
}


Instance 110

Class350.testVersioned04()#0{
        extractor.setPhysicalAddress(new File(VERSIONED_LOCATION2).toURI());
        OWLOntologyID id = extractor.getOntologyId();
        assertTrue(id.getOntologyIRI().toString().equals(VERSIONED_NAME));
        assertTrue(id.getVersionIRI().toString().equals(VERSIONED_VERSION));
}


Instance 111

Class40.testVersioned01()#0{
        extractor.setPhysicalAddress(new File(VERSIONED_LOCATION).toURI());
        OWLOntologyID id = extractor.getOntologyId();
        assertTrue(id.getOntologyIRI().toString().equals(VERSIONED_NAME));
        assertTrue(id.getVersionIRI().toString().equals(VERSIONED_VERSION));
}


Instance 112

Class560.testPizza02()#0{
        extractor.setPhysicalAddress(new File(PIZZA_LOCATION).toURI());
        OWLOntologyID id = extractor.getOntologyId();
        assertTrue(id.getOntologyIRI().toString().equals(PIZZA_NAME));
        assertTrue(id.getVersionIRI() == null);
}


Instance 113

Class760.testAmbiguous01()#0{
        extractor.setPhysicalAddress(new File(AMBIGUOUS_LOCATION).toURI());
        OWLOntologyID id = extractor.getOntologyId();
        assertTrue(id.getOntologyIRI().toString().equals(AMBIGUOUS_NAME));
        assertTrue(id.getVersionIRI() == null);
}


Instance 114

Class710.test()#0{
        scan(new File("./target/test-classes").toURI().toURL());
}


Instance 115

Class640.setUp()#0{
        _scannedURLs.add(new File("./target/test-classes").toURI().toURL());
}


Instance 116

Class280.addPath(String s)#0{
    File f = new File(s);
    URL u = f.toURI().toURL();
}


Instance 117

Class350.getVDBMetadata(String vdbFile)#0{
      File f = new File(vdbFile);
      return getVDBMetadata(f.getName(), f.toURI().toURL()null);
}


Instance 118

Class390.testWithUrl(){
        File f = new File"./target/test-jcl.jar" );
        JarClassLoader jc = new JarClassLoadernew URL[] { f.toURI().toURL() } );
        Object testObj = jc.loadClass"org.xeustechnologies.jcl.test.Test" ).newInstance();
        assertNotNulltestObj );
}


Instance 119

Class580.scan(TldScanner.TldScannerCallback callback,File webapp,String path){
        String fullPath = new File(webapp, path).toURI().toString();
        URL jarUrl = new URL("jar:" + fullPath + "!/");
        JarURLConnection connection = (JarURLConnectionjarUrl.openConnection();
        callback.scan(connection, path, true);
}


Instance 120

Class250.getURL(){
            return new File(jarFile.getName()).toURI().toURL();
}


Instance 121

Class520.toURL(String element)#0{
            return new File(element).toURI().toURL();
}


Instance 122

Class160.testImportJarToDiagramStringArrayString(){
        jarImporter.importJarToDiagram(new File("test_files/accuracytests/classpath/test_1.jar").toURI().toURL(),
            "main");
}


Instance 123

Class160.testImportJarURLArray(){
        jarImporter.importJar(new File("test_files/accuracytests/classpath/test_1.jar").toURI().toURL());
}


Instance 124

Class160.testImportJarsURLArray(){
        jarImporter.importJars(new URL[] {new File("test_files/accuracytests/classpath/test_1.jar").toURI().toURL() });
}


Instance 125

Class520.JarBundleFile(JarFile jarFile)#0{
            urlBase = "jar:" new File(jarFile.getName()).toURI().toURL() "!/";
}


Instance 126

Class570.getControllerConfig(WebappInfo webAppInfo){
        Assert.notNull("webAppInfo", webAppInfo);
        String filePath = webAppInfo.getLocation().concat(controllerXmlFileName);
        File configFile = new File(filePath);
        return getControllerConfig(configFile.toURI().toURL());
}


Instance 127

Class260.testDeploymentViaUrl()#1{
        String url = new File(tmpDir, "archives/" + TEST).toURI().toURL().toString();
}


Instance 128

Class290.testUploadURL()#0{
        String url = new File(tmpDir, "archives/" + TEST).toURI().toURL().toString();
}


Instance 129

Class330.testWithNotGlowrootJarButWithDelegateJavaagent()#0{
            File glowrootJar = new File("x/classes");
            CodeSource codeSource = new CodeSource(glowrootJar.toURI().toURL()new Certificate[0]);
            assertThat(Agent.getGlowrootJarFile(codeSource)).isNull();
}


Instance 130

Class330.testWithNotGlowrootJar()#0{
        File glowrootJar = new File("x/classes");
        CodeSource codeSource = new CodeSource(glowrootJar.toURI().toURL()new Certificate[0]);
        Agent.getGlowrootJarFile(codeSource);
}


Instance 131

Class730.testExtraElementInConfig(){
                ImportControlLoader.load(new File(
                        "src/test/resources/com/puppycrawl/tools/checkstyle/imports/import-control_WithNewElement.xml").toURI());
        assertNotNull(root);
}


Instance 132

Class730.testLoad(){
                ImportControlLoader.load(new File(
                        "src/test/resources/com/puppycrawl/tools/checkstyle/imports/import-control_complete.xml").toURI());
        assertNotNull(root);
}


Instance 133

Class410.OpenFileWithSystemEditor(IWorkbenchPage page,String filePath){
    OpenFileWithSystemEditor(page, new File(filePath).toURI());
}


Instance 134

Class410.OpenFileWithSystemEditor(String filePath){
    OpenFileWithSystemEditor(new File(filePath).toURI());
}


Instance 135

Class530.configure()#2{
                File file = new File("./src/test/resources/jsse/localhost.ks");
                URI keyStoreUrl = file.toURI();
                component.setSslKeystore(keyStoreUrl.getPath());
}


Instance 136

Class510.useFont(String fontName,String filename,boolean useAdvanced)#1{
        URI baseURI = new File("test/resources/fonts/ttf").toURI();
        InternalResourceResolver resolver = ResourceResolverFactory.createDefaultInternalResourceResolver(baseURI);
}


Instance 137

Class550.setUp()#0{
        sut = new AFPResourceManager(ResourceResolverFactory.createDefaultInternalResourceResolver(
                                                            new File(".").toURI()));
}


Instance 138

Class130.readSuspendablesFile(String fileName,Set<String> set,Set<String> classSet)#0{
            parse(new File(fileName).toURI().toURL(), set, classSet);
}


Instance 139

Class260.absolutePathWithFileProtocol()#0{
    final String expected = new File(tmpDir).toURI().toString();
}


Instance 140

Class240.getResourceIDs()#0{
            l.add(new File(url).toURI().toURL());
}


Instance 141

Class810.formFileUri(String path){
        File file = new File(path);
        return file.toURI().toString();
}


Instance 142

Class90.setComponentPropertyTest()#0{
        File configFile = new File("src/test/resources/edu/cmu/sphinx/util/props/ConfigurationManagerTest.testconfig.sxl");
        ConfigurationManager cm = new ConfigurationManager(configFile.toURI().toURL());
}


Instance 143

Class340.modificationTimeWithFileProtocol()#0{
    final String path = new File(tmpDir).toURI().toString() "/file.txt";
    fs.createTextFile(path, "blah");
    final long millisSinceModified = System.currentTimeMillis() - fs.modificationTime(path);
    assertEquals(millisSinceModified + " millis ago", true, millisSinceModified < 1000);
}


Instance 144

Class40.toURI()#0{
        Assert.assertEquals(repo.configToHttpUri("@apple:1.0")new File(repo.getTargetRepo()"prod/apple/1.0/apple-1.0.config").toURI());
}


Instance 145

Class390.testBadUrl()#0{
    URL url = new File("nonexistent.web.xml").toURI().toURL();
    builder.expectWarn("Unable to process '" + url.toExternalForm()
        "' for servlet validation", IOException.class);
    UnitTestTreeLogger logger = builder.createLogger();
    ServletValidator validator = ServletValidator.create(logger, url);
    assertNull(validator);
    logger.assertCorrectLogEntries();
}


Instance 146

Class410.testLocal()#0{
    File file = new File("output/rafsource/test1.bin");
    URI uri = file.toURI();
    URIDataFileSink sink = new URIDataFileSink(uri);
    sink.writeFile(m_data);
}


Instance 147

Class410.testLocal(){
    File file = new File("output/rafsink/test1.bin");
    URI uri = file.toURI();
    URIDataFileSink sink = new URIDataFileSink(uri, "test1.bin", file);
    doTest(sink, false);
    URIDataFileSource src = new URIDataFileSource(uri);
    assertTrue("data", Arrays.equals(m_data, src.getFileBytes()));
}


Instance 148

Class220.validTrustStoreURLFailoverTest(){
        executeTest(FAILOVER_SSL_TRANSPORT, new File(TRUST_STORE_DIRECTORY_NAME + TRUST_STORE_FILE_NAME).toURI().toString());
}


Instance 149

Class220.invalidTrustStoreURLTest(){
        executeTest(SSL_TRANSPORT, new File(TRUST_STORE_DIRECTORY_NAME + TRUST_STORE_FILE_NAME + ".dummy").toURI().toString());
}


Instance 150

Class350.testFileUriToMissingFile(){
        File f = new File(Environment.getExternalStorageDirectory() "/somefilethatdoesntexist");
        Uri fileUri = Uri.parse(f.toURI().toString());
            performApiTest(fileUri, null, f, false, true);
            f.delete();
}


Instance 151

Class400.toURI(String line){
            return (URI.create(line));
            return new File(line).toURI();
}


Instance 152

Class590.testShadowed()#1{
        assertTrue(CatalogUtilities.getRedirect(URI.create(AMINO_ACID_NS), catalog).equals(new File(TEST_DIR, AMINO_ACID_FILE).toURI()));     
        assertTrue(CatalogUtilities.getRedirect(URI.create(CatalogEntryManager.SHADOWED_SCHEME + AMINO_ACID_NS), catalog).equals(new File(TEST_DIR, subDirectoryName + "/" + AMINO_ACID_FILE).toURI()));     
}


Instance 153

Class10.test()#0{
    H5File file=HDF5Reader.readHDF5File(new File("./src/test/resources/H5DatasetCreate.h5").toURI().toURL(),-1l);
    Assert.notNull(file);
}


Instance 154

Class20.testUseOSLastModified()#1{
        File input = new File("src/test/resources/reader/datefallbacksample.xml");
        final URL testdata = input.toURI().toURL();
        reader.parse(testdata, creator);
}


Instance 155

Class280.removeResource(String bundleName)#0{
        File bundleFile = new File(this.repoLocation, bundleName);
        this.bundles.remove(bundleFile.toURI().toString());
        bundleFile.delete();
}


Instance 156

Class610.extendPath(URI base,String child){
    return new File(URIUtils.getAbsoluteFile(base), child).toURI();
}


Instance 157

Class440.getRelativePath(File base,File path)#0{
        String cleanedPath = FilenameUtils.normalize(path.toString());
        return new File(cleanedBase).toURI().relativize(new File(cleanedPath).toURI()).getPath();
}


Instance 158

Class320.addJar(String jar)#0{
        addURL(new File(jar).toURI().toURL());
}


Instance 159

Class320.createLemmatizer(){
    Lemmatizer gateLemmatizer = new GateLemmatizer(new File(lemmatizerRulesFileName).toURI().toURL());
    Lemmatizer lemmatizer = new LemmatizerFilterApostrophe(gateLemmatizer);
    lemmatizer.init();
}


Instance 160

Class320.getClassPathEntry(File jarFile,String path)#0{
      return new File(jarFile.getParentFile(), path.replace('/', File.separatorChar)).toURI();
}


Instance 161

Class610._prepareServletContext(ServletContext servletContext){
    File webINFFile = new File(_testDir, ServletContextUtil.PATH_WEB_INF);
    servletContext.setAttribute(
      ServletContextUtil.URI_ATTRIBUTE, webINFFile.toURI());
}


Instance 162

Class610.getLocationURI()#0{
    String projectFolder = getProjectName();
    return new File(parentDir, projectFolder).toURI();
}


Instance 163

Class610.getKeystorePaths(){
                {new File(getFile("server.ks")).toURI().toString()},
}


Instance 164

Class480.testGetExtension()#1{
        assertEquals("zip:" new File(droidZipFileName).toURI() "!/profile.xml",
                zipResource.getIdentifier().getUri().toString());
        assertEquals(metaData, zipResource.getRequestMetaData());
}


Instance 165

Class480.testP2ResolutionWithLowerBREEThanRequiredBundle()#1{
        verifier.getCliOptions().add("-Dp2.repo.url=" new File(buildResult, "repository1/target/repository").toURI());
}


Instance 166

Class440.getRelativePath(File base,File path)#1{
        return new File(cleanedBase).toURI().relativize(new File(cleanedPath).toURI()).getPath();
}


Instance 167

Class440.getBpmPlatformXmlLocationFromJndi()#1{
    assertEquals(new File(BPM_PLATFORM_XML_FILE_ABSOLUTE_LOCATION).toURI().toURL(), url);
}


Instance 168

Class420.utestMyFile()#1{
    File f = new File"z:/tmp/catalog.xml");
    URI uri = f.toURI();
}


Instance 169

Class420.name(String name){
      database.setName(name);
      File databaseFolder = new File(warehouseFolder, name + ".db");
      String databaseLocation = "raw://" + databaseFolder.toURI().getPath();
      database.setLocationUri(databaseLocation);
}


Instance 170

Class510.setUp()#0{
    clitestDataDir = new File(TEST_CACHE_DATA_DIR).
    toURI().toString().replace(' ''+');
}


Instance 171

Class200.getRelativePath(String fileName)#1{
        String relative = new File(base).toURI().relativize(new File(fileName).toURI()).getPath();
}


Instance 172

Class200.getRelativePath(String fileName)#2{
        String relative = new File(base).toURI().relativize(new File(fileName).toURI()).getPath();
}


Instance 173

Class450.loadPlugins()#0{
        pm.addPluginsFrom(new File(PLUGINS_DIRECTORY).toURI());
}


Instance 174

Class450.testURI()#0{
    String expectedUri = new File(new File(File.separator + "testDir")"testFile").toURI().toString();
}


Instance 175

Class350.getSomeDirectory()#0{
            return new File(ReflectionsTest.getUserDir()).toURI().toURL();
}


Instance 176

Class630.toUrl(final String jarPath)#1{
            return new File(jarPath).toURI().toURL();
}


Instance 177

Class630.testAbsoluteURI(){
        File tazbm = new File(root, "wcs/BlueMarble.tiff");
        StringValidatable validatable = new StringValidatable(tazbm.toURI().toString());
        validator.validate(validatable);
        assertTrue(validatable.isValid());
}


Instance 178

Class70.addVersionFile(String pdkDir){
            new File(pdkDir, "../lib");
        URL versionProps = versionProperties.toURI().toURL();
        addURLs(new URL[] {versionProps});
}


Instance 179

Class250.assertResolves(String path)#1{
        String asuri = new File(path).toURI().toASCIIString();
}


Instance 180

Class250.addClasspath(String name)#0{
                ((LaunchClassLoaderDepLoader.class.getClassLoader()).addURL(new File(v_modsDir, name).toURI().toURL());
}


Instance 181

Class100.registerNewResource(String file)#1{
        URL urlToAdd = new File(file).toURI().toURL();
}


Instance 182

Class550.getCustomTemplatesURL()#0{
      return new File(getCustomTemplatesPath()).toURI().toURL();
}


Instance 183

Class550.findFile(String path)#1{
    URI uri = new File(repository.getWorkTree(), path).toURI();
}


Instance 184

Class740.validPkcs12TrustStoreURLTest(){
        executeTest(SSL_TRANSPORT, new File(TRUST_STORE_DIRECTORY_NAME + TRUST_STORE_PKCS12_FILE_NAME).toURI().toString()"pkcs12");
}


Instance 185

Class460.shouldSetHeadersAndBaseDirectory()#3{
        assertThat(resourceHandler.getResourceBase(), isSameFileAs(new File("WEB-INF/rails.root/public/assets").toURI().toString()));
}


Instance 186

Class460.shouldAddPluginNamespaceToPassedInElement()#0{
        registry.xsdFor(PluginTestUtil.bundleCtxWithHeaders(m(PluginNamespace.XSD_NAMESPACE_PREFIX, "second", PluginNamespace.XSD_NAMESPACE_URI, "uri-1"))new File("file:///tmp/foo1").toURI().toURL());
}


Instance 187

Class460.shouldAddPluginNamespaceToPassedInElement()#7{
        registry.xsdFor(PluginTestUtil.bundleCtxWithHeaders(m(PluginNamespace.XSD_NAMESPACE_PREFIX, "something", PluginNamespace.XSD_NAMESPACE_URI, "uri"))new File("file:///tmp/foo").toURI().toURL());
}


Instance 188

Class460.testToConfigDeclaration()#0{
        assertEquals(urls[0]new File(path).toURI().normalize().toURL());
}


Instance 189

Class460.apply(String input)#0{
                        return new File(input).toURI().toURL();
}


Instance 190

Class360.ImageLoaderTestCase(){
        FopFactoryBuilder builder = new FopFactoryBuilder(new File(".").toURI());
        builder.setSourceResolution(72);
        builder.setTargetResolution(300);
        fopFactory = builder.build();
}


Instance 191

Class360.setUp(){
        File file = new File("test/resources/fonts/ttf/DejaVuLGCSerif.ttf");
        FontUris fontUris = new FontUris(file.toURI()null);
        font = FontLoader.loadFont(fontUris, "", true, EmbeddingMode.AUTO, EncodingMode.AUTO,
                false, false, resolver);
}


Instance 192

Class750.setSignatureFile(String signatureFile){
        this.signatureFile = new File(signatureFile).toURI();
}


Instance 193

Class750.loadFile(SAXParser parser,String fileName)#0{
            String a = new File(fileName).toURI().toString().replace("file:/""file:///");
            Main.info(a);
            parser.parse(a, this);
}


Instance 194

Class400.toURL(String urlText){
          return new File(urlText).toURI().toURL();
}


Instance 195

Class470.getRelativeBaseDirPath(String baseDir)#1{
        String path = new File(".").toURI().relativize(new File(baseDir).toURI()).getPath();
}


Instance 196

Class720.addOutputDir(String outputDir)#0{
            addURLnew FileoutputDir ).toURI().toURL() );
}


Instance 197

Class720.WelcomeDashboard()#1{
    File contentInstance = DashboardCopier.getCopy(file, new NullProgressMonitor());
    File welcomeHtml = new File(contentInstance, "index.html");
    setHomeUrl(welcomeHtml.toURI().toString());
}


Instance 198

Class760.getPredefinedCssURI()#0{
      final String path = MarkdownPluginUtil.getMarkdownPluginPath() "/lib/default.css";
      return new File(path).toURI().toString();
}


Instance 199

Class760.testGetExtension()#1{
        assertEquals("tar:" new File(fileName).toURI() "!/saved/profile.xml",
                tarResource.getIdentifier().getUri().toString());
        assertEquals(metaData, tarResource.getRequestMetaData());
}


Instance 200

Class620.toUri()#1{
            String zipName = new File(getZipName()).toURI().normalize().getPat
}


Instance 201

Class140.testStringToURL()#2{
        assertEqualsnew File"/foo/bar").toURI().toURL() , c.convert"/foo/bar", URL.class ) );
}


Instance 202

Class130.testWkDirPath()#0{
        AvlRdnIndex.setWkDirPathnew FiledbFileDir, "foo" ).toURI() );
}


Instance 203

Class590.testShadowed()#2{
        OntologyCatalogManager catalogManager = new OntologyCatalogManager(Collections.singletonList(new FolderGroupManager()));
        XMLCatalog catalog = catalogManager.ensureCatalogExists(TEST_DIR);
        assertTrue(CatalogUtilities.getRedirect(URI.create(AMINO_ACID_NS), catalog).equals(new File(TEST_DIR, AMINO_ACID_FILE).toURI()));     
}


Instance 204

Class590.getDefaultViewConfigFile()#0{
                    return new File(getId() "-config.xml").toURI().toURL();
}


Instance 205

Class590.getAndroidLibrary()#0{
              return new File("data/android-2.3.7_r1.jar").toURI();
}


Instance 206

Class390.getPatchFileURI(final String patchFilePath)#0{
        return firstNonNull(uri, new File(patchFilePath).toURI());
}


Instance 207

Class170.getFakeBundlePath()#0{
            return new File("/FAKE_BUNDLE").toURI().toURL().toExternalForm();
}


Instance 208

Class170.ContentBasedJavaFileObject(String name,String content){
      super(new File(name).toURI(), Kind.SOURCE);
}


Instance 209

Class800.main(final String[] args)#0{
        final File file = new File(CONFIG);
        Configurator.initialize("LogTest", LogRolloverTest.class.getClassLoader(), file.toURI());
}


Instance 210

Class150.addDocumentToRoot()#0{
            final InputSource is = new InputSource(new File("samples/shakespeare/hamlet.xml").toURI().toASCIIString());
            assertNotNull(is);
}


Instance 211

Class10.should_return_the_asset_contents()#1{
      String filePath = new File("src/test/resources/locator/asset.js").toURI().toString();
}


Instance 212

Class10.getUri()#0{
    return new File(path).toURI();
}


Instance 213

Class210.apply(String from)#1{
          return new File(from).toURI().toURL();
}


Instance 214

Class210.shouldProvideShortJarPathUrlContentAsString()#0{
        assertThat(classLoader.toString(),
                containsString("urls=" + classLoader.asShortPaths(new File("one.jar").toURI().toURL()new File("/target/classes").toURI().toURL())));
}


Instance 215

Class210.shouldProvideShortJarPathUrlContentAsString()#1{
                containsString("urls=" + classLoader.asShortPaths(new File("one.jar").toURI().toURL()new File("/target/classes").toURI().toURL())));
}


Instance 216

Class730.insertFace(SimpleAttributeSet set,String face)#0{
            StyleConstants.setIcon(set, sizeIcon(new File(face).toURI().toURL()));
}


Instance 217

Class80.getConfigurationDataURI(){
    File configurationFile = new File(_keyStoreDirectory, _configurationFileName)
    return configurationFile.toURI();
}


Instance 218

Class270.setUpForTest(String pathDDL,String config)#0{
            File ddlFile = new File(pathDDL);
            URL ddlURL = ddlFile.toURI().toURL();
            s_singleton.setupSchema(ddlURL, config, false);
}


Instance 219

Class270.testIDURI(){
        File file = new File("foo.txt");
        URI uri = file.toURI();
        ID idURI = new ID(uri);
        assertEquals(uri, idURI.toURI());
}


Instance 220

Class50.buildProfileResourceNodeAtUriWithJob(String filePath){
        ProfileResourceNode node = new ProfileResourceNode(new File(filePath).toURI());
}


Instance 221

Class50.prepareDistributionUri()#2{
            return new File(propertiesFile.getParentFile(), source.getSchemeSpecificPart()).toURI();
}


Instance 222

Class580.getFileItemAsString()#0{
        assertThat(new File(fi).toURI().getPath(), containsString("config/test.txt"));
}


Instance 223

Class580.fullConfig()#0{
        assertEquals(new File("/tmp/upload").toURI().toString(), upload.getRepository().toURI().toString());
        assertEquals("100", upload.getSizeMax().toString());
        assertEquals("200", upload.getFileSizeMax().toString());
        assertEquals("300", upload.getSizeThreshold().toString());
        assertEquals(true, upload.isKeepFormFieldInMemory());
        assertArrayEquals(new String[] { "filename""fname" }, upload.getFileNameKey());
}


Instance 224

Class370.appSample()#0{
    URI scriptUri = new File("samples/app.groovy").toURI();
    assertTrue("Wrong output: " + output,
        output.contains("Hello World! From " + scriptUri));
}


Instance 225

Class20.configureShell(CpsFlowExecution context,GroovyShell shell)#0{
            shell.getClassLoader().addURL(new File(repo.workspace,"src").toURI().toURL());
}


Instance 226

Class790.SAJDIClassLoader(ClassLoader parent,String classPath)#0{
            addURL(new File(classPath).toURI().toURL());
}


Instance 227

Class520.testGetInstanceString(){
        File f = new File(fedoraUsersXML);
        FedoraUsers fu = FedoraUsers.getInstance(f.toURI());
        assertNotNull(fu);
}


Instance 228

Class300.testDefaultJarImporterUMLModelManagerURLArray(){
        new DefaultJarImporter(modelManager, new URL[] {new File(
            "test_files/accuracytests/classpath/base_exception.jar").toURI().toURL() });
}


Instance 229

Class680.testHasProperties()#1{
        final URL url = new File(new File(DIRECTORY)"dummy.shp").toURI().toURL();
        parser = new ShpDocPropertyParser(url);
        assertFalse("Property file exist.", parser.hasProperties());
}


Instance 230

Class540.addPath(String s)#2{
        File f = new File(s);
        URI u = f.toURI();
}


Instance 231

Class540.setup()#3{
        expect(mockCtx.getConfigLocation()).andReturn(new File("/a a/b b/c c/d d/e e/log4j2 file.xml").toURI());
}


Instance 232

Class540.bundlePathURL()#0{
      return new File(bundlePath()).toURI().toURL();
}


Instance 233

Class240.TestLoader()#0{
                      new File("/Storage Card/test.jar").toURI().toURL()
}


Instance 234

Class240.TestLoader()#1{
                      new File(BUILDDIR + "/test-classes").toURI().toURL(),
}


Instance 235

Class240.TestLoader()#4{
                      new File(BUILDDIR + "/classes").toURI().toURL(),
}


Instance 236

Class240.createId(String locationPath)#1{
            URL locationUrl = new File(locationPath).toURI().toURL();
}


Instance 237

Class690.BasePDFTest(InputStream confStream){
        fopFactory = new FopConfParser(confStream, new File(".").toURI()).getFopFactoryBuilder()
                                                                         .build();
}


Instance 238

Class530.testDoNotStartExtraneousRootRegionBundles()#0{
    bundleContext.installBundle(new File(BUNDLE_A).toURI().toURL().toString());
}


Instance 239

Class530.testGetInputStream()#0{
        URL txtFile = new File"target/test-classes/source.txt" ).toURI().toURL();
        UrlSource source = new UrlSourcetxtFile );
}